package com.company.cloud.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

import com.company.cloud.common.ribbon.annotation.EnableBaseFeignInterceptor;
import com.company.cloud.common.utils.MainUtils;

@EnableZuulProxy
@EnableHystrix
@EnableBaseFeignInterceptor
@EnableFeignClients(basePackages = { "com.company.cloud" })
@SpringBootApplication
@ComponentScan(basePackages = { "com.company" })
public class ZuulGatewayApplication {

	public static void main(String[] args) {
		SpringApplication.run(ZuulGatewayApplication.class, MainUtils.args(args));
	}

}
